#
# Be sure to run `pod lib lint MKUI.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html

# 本地测试pod库：pod lib lint --allow-warnings --verbose --no-clean
# 远程验证:pod spec lint --allow-warnings --verbose --no-clean
# 推送到xxx私有源：pod repo push xxxspecs MKUI.podspec --allow-warnings --verbose
# 推到官方源：pod trunk push MKUI.podspec --allow-warnings --verbose

Pod::Spec.new do |s|
  s.name             = 'MKUI'
  s.version          = '1.0.6.31'
  s.summary          = 'iOS上，对集合类型的视图进行模型封装，以及提供结构化的视图'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
* 对UITableView，UICollectionView，UIPickerView进行模型数据封装
* 提供一套TabBar页签控制器机制
* 仿照安卓，提供简单的布局容器
* 提供流式布局的UIButton子类
* 提供自定义的CollectionViewLayout（支持循环滚动的流布局）
* 依照UITableView，提供一个UIListView，按流布局方面管理自己的子view。刷新时，只是计算子view的位置，不会移除、添加子view
                       DESC

  s.homepage         = 'https://gitee.com/sushangjin/MKUI'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'sushangjin' => '381130632@qq.com' }
  s.source           = { :git => 'https://gitee.com/sushangjin/MKUI', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '9.0'

  s.source_files = 'MKUI/*.h'
  s.frameworks = 'UIKit'
  
  #Core基础
  s.subspec 'Core' do |ss|
    ss.source_files = 'MKUI/Core/*.{h,m}'
    ss.frameworks = 'UIKit'
  end
    
  #UI扩展
  s.subspec 'Extension' do |ss|
    ss.source_files = 'MKUI/Extension/*.{h,m}'
    ss.dependency 'MKUI/Core'
    ss.frameworks = 'UIKit'
  end
    
  #仿照安卓，提供简单的布局容器
  s.subspec 'Constraint' do |ss|
    ss.source_files = 'MKUI/Constraint/*.{h,m}'
    ss.dependency 'MKUI/Core'
    ss.frameworks = 'UIKit'
  end
  
  #仿照安卓，提供简单的布局容器
  s.subspec 'FlowLayoutButton' do |ss|
    ss.source_files = 'MKUI/FlowLayoutButton/*.{h,m}'
    ss.dependency 'MKUI/Constraint'
    ss.dependency 'MKUI/Extension'
    ss.dependency 'MKUI/Core'
    ss.frameworks = 'UIKit'
  end
  
  #集合基础数据模型
  s.subspec 'CollectionModel' do |ss|
    ss.source_files = 'MKUI/CollectionModel/*.{h,m}'
    ss.dependency 'MKUI/Extension'
    ss.dependency 'MKUI/Core'
    ss.frameworks = 'UIKit'
  end
  
  #对UITableView进行模型数据封装
  s.subspec 'UITableViewModel' do |ss|
    ss.source_files = 'MKUI/UITableViewModel/*.{h,m}'
    ss.dependency 'MKUI/CollectionModel'
    ss.dependency 'MKUI/Constraint'
    ss.dependency 'MKUI/Extension'
    ss.dependency 'MKUI/Core'
    ss.frameworks = 'UIKit'
  end
  
  #ListView(列表视图)
  s.subspec 'ListView' do |ss|
    ss.source_files = 'MKUI/ListView/*.{h,m}'
    ss.dependency 'MKUI/Constraint'
    ss.dependency 'MKUI/Extension'
    ss.dependency 'MKUI/Core'
    ss.frameworks = 'UIKit'
  end
  
  #Element(表单组件)
  s.subspec 'Element' do |ss|
    ss.source_files = 'MKUI/Element/*.{h,m}'
    ss.dependency 'MKUI/Constraint'
    ss.dependency 'MKUI/Extension'
    ss.dependency 'MKUI/Core'
    ss.dependency 'MKUI/ListView'
    ss.dependency 'MKUI/UITableViewModel'
    ss.frameworks = 'UIKit'
  end
  
  #对UICollectionView进行模型数据封装
  s.subspec 'UICollectionModel' do |ss|
    ss.source_files = 'MKUI/UICollectionModel/*.{h,m}'
    ss.dependency 'MKUI/CollectionModel'
    ss.dependency 'MKUI/Constraint'
    ss.dependency 'MKUI/Extension'
    ss.dependency 'MKUI/Core'
    ss.frameworks = 'UIKit'
  end
  
  #对UIPickerView进行模型数据封装
  s.subspec 'UIPickerViewModel' do |ss|
    ss.source_files = 'MKUI/UIPickerViewModel/*.{h,m}'
    ss.dependency 'MKUI/CollectionModel'
    ss.frameworks = 'UIKit'
  end
  
  #提供一套TabBar页签控制器机制
  s.subspec 'TarBarController' do |ss|
    ss.source_files = 'MKUI/TarBarController/*.{h,m}'
    ss.dependency 'MKUI/ListView'
    ss.dependency 'MKUI/UICollectionModel'
    ss.dependency 'MKUI/CollectionViewLayout'
    ss.dependency 'MKUI/FlowLayoutButton'
    ss.dependency 'MKUI/Constraint'
    ss.dependency 'MKUI/Extension'
    ss.dependency 'MKUI/Core'
    ss.frameworks = 'UIKit'
  end
  
  #CollectionViewLayout(自定义集合布局)
  s.subspec 'CollectionViewLayout' do |ss|
    ss.source_files = 'MKUI/CollectionViewLayout/*.{h,m}'
    ss.dependency 'MKUI/Core'
    ss.dependency 'MKUI/Extension'
    ss.dependency 'MKUI/Constraint'
    ss.frameworks = 'UIKit'
  end
  
  #CollectionViewLayout+UICollectionModel
  s.subspec 'CollectionViewLayout_UICollectionModel' do |ss|
    ss.source_files = 'MKUI/CollectionViewLayout_UICollectionModel/*.{h,m}'
    ss.dependency 'MKUI/Core'
    ss.dependency 'MKUI/Extension'
    ss.dependency 'MKUI/CollectionViewLayout'
    ss.dependency 'MKUI/Constraint'
    ss.dependency 'MKUI/UICollectionModel'
    ss.frameworks = 'UIKit'
  end
  
  #Theme(主题化)
  s.subspec 'Theme' do |ss|
    ss.source_files = 'MKUI/Theme/*.{h,m}'
    ss.dependency 'MKUI/Core'
    ss.dependency 'MKUI/Extension'
    ss.frameworks = 'UIKit'
  end
    
  #PageControl(页码指示器)
  s.subspec 'PageControl' do |ss|
    ss.source_files = 'MKUI/PageControl/*.{h,m}'
    ss.dependency 'MKUI/Core'
    ss.dependency 'MKUI/Extension'
    ss.dependency 'MKUI/CollectionViewLayout'
    ss.dependency 'MKUI/UICollectionModel'
    ss.frameworks = 'UIKit'
  end
      
  #Alert(弹窗)
  s.subspec 'Alert' do |ss|
    ss.source_files = 'MKUI/Alert/*.{h,m}'
    ss.dependency 'MKUI/Core'
    ss.dependency 'MKUI/Extension'
    ss.dependency 'MKUI/ListView'
    ss.frameworks = 'UIKit'
  end
  
  # s.resource_bundles = {
  #   'MKUI' => ['MKUI/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
